import http from 'utils/request'
// 登录接口
export const login = (params) => http('/v1_0/authorizations', params, 'POST')

// 获取用户资料
export const getUserData = (params) => http('/v1_0/user/profile', params, 'GET')

// 获取所有频道列表
export const getChanelList = (params) => http('/v1_0/channels', params, 'GET')

// 获取文章列表
export const getArticltList = (params) => http('/v1_0/mp/articles', params, 'GET')

// 删除文章
export const deleteArticltId = (params, id) => http(`/v1_0/mp/articles/${id}`, params, 'DELETE')
